home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / cmdity / clicker.lha / Clicker / Source / Makefile < prev    next >
Makefile  |  1996-05-16  |  1KB  |  38 lines

  1. # Makefile for Clicker, using gcc as compiler.
  2.  
  3. # Set PROCESSOR to -m68010, -m68020, -m68030, -m68040 or -m68060 to generate
  4. # code for these processors, or omit it to keep compatible with all Amigas.
  5. # PROCESSOR = -m68040
  6.  
  7. # Set MATH to -m68881 if wish to compile for machines with a mathematical
  8. # coprocessor.  Otherwise, just comment out this line.
  9. # MATH = -m68881
  10.  
  11. CC        = gcc
  12. CPPFLAGS  = -DUTILITYBASE=UtilityBase
  13. CFLAGS    = -ansi -Wall -O3 -s $(PROCESSOR) $(MATH)
  14. LDFLAGS   = -s -noixemul $(PROCESSOR) $(MATH)
  15. LOADLIBES = -lamiga -lm
  16.  
  17. RM = C:Delete
  18.  
  19. OBJS = main.o broker.o sound.o prefs.o gui.o sample.o
  20. HDRS = main.h broker.h sound.h prefs.h gui.h sample.h
  21.  
  22. Clicker : $(OBJS)
  23.     $(CC) $(OBJS) $(LDFLAGS) -o $@ $(LOADLIBES)
  24.  
  25. main.o : main.c $(HDRS)
  26. broker.o : broker.c broker.h main.h
  27. sound.o : sound.c sound.h prefs.h main.h
  28. gui.o : gui.c gui.h
  29.  
  30. # Not sure how to do this yet:  sample.c must be compiled to use CHIP mem.
  31. sample.o : sample.c sample.h
  32.     $(CC) -c $(CPPFLAGS) $(CFLAGS) -DCHIPMEMDIRECTIVE -chip $<
  33.  
  34. clean :
  35.     $(RM) $(OBJS)
  36.  
  37. .PHONY : clean
  38.